# 可以直接作用于 for 循环的对象统称为可迭代对象： Iterable
from collections import Iterable

print(isinstance({}, Iterable))
print(isinstance([], Iterable))
print(isinstance((), Iterable))
print(isinstance('saa', Iterable))
print(isinstance([i for i in range(10)], Iterable))
print(isinstance((i for i in range(10)), Iterable))


